package com.sundae.smarthomedemo.Utils;

import android.content.Context;
import android.widget.Toast;

/**
 * Created by daijiyuan on 2017/6/5.
 * 邮箱 948820549@qq.com
 *
 * @Sundae
 */

public class ToastUtils {
    public static Toast toast;

    public static void showShortToast(Context context , String msg)
    {
        toast = Toast.makeText(context , msg , Toast.LENGTH_SHORT);
        toast.show();
    }

    public static void showLongToast(Context context , String msg)
    {
        toast = Toast.makeText(context , msg , Toast.LENGTH_LONG);
        toast.show();
    }
}
